[Unit]
Description=MongoDB Database Server
After=network.target
 
[Service]
Type=forking
User={{mongodb_user}}
Group={{mongodb_user}}
ExecStart={{mongodb_base}}/bin/mongod -f {{mongodb_data}}/conf/mongodb.conf
ExecStop={{mongodb_base}}/bin/mongod --shutdown --config {{mongodb_data}}/conf/mongodb.conf
 
[Install]
WantedBy=multi-user.target
